#include <iostream>

using namespace std;

void cz(int (* jz)[3])
{
	int i, j;
	int max = jz[0][0];
	int x = 0, y = 0;
	for(i = 0; i < 2; i ++)
        {
                for(j = 0; j <= 3; j ++)
                {
                	if(max < jz[i][j])
			{
				max = jz[i][j];
				x = i;
				y = j;
			}
                }
        }
	cout << max << endl;
	cout << x << endl;
	cout << y << endl;
}

int main(void)
{
	int jz[2][3] = {1,2,3,4,5,6};

	int i, j;
	for(i = 0; i < 2; i ++)
	{
		for(j = 0; j < 3; j ++)
		{
			cout << jz[i][j] << " ";
		}
		cout << endl;
	}

	cz(jz);

	return 0;
}
